#pragma once
#include "glenv.h"
#include "GlPanel.h"
#include "GlButton.h"
#include "MouseStatus.hpp"


class InfoBoardControl : public GlControl
{
private:
  float _windowWidth;
  float _windowHeight;
  GlPanel _panel;
  GlButton _testButton;
  MouseStatus _lastMouseStatus;

  void _triggerMouseEvent (const MouseStatus& currentStatus);

public:
  InfoBoardControl(void);
  virtual ~InfoBoardControl(void);

  virtual void init_render ();
  virtual void draw ();

  virtual void handle_mouse (int button, int state, int x, int y);
  virtual void handle_motion (int x, int y);
  virtual void handle_passive_motion (int x, int y);

  virtual void handle_reshape (int width, int height);

};
